package com.example.sofa_module;

import com.example.common.mvvm.model.BaseRespository;
import com.example.network_sdk.BaseEntity;
import com.example.network_sdk.RetrofitManager;
import com.example.sofa_module.entity.TagEntity;

import io.reactivex.Observable;

public class SofaRespository extends BaseRespository {
//    http://118.195.161.134:8088/serverdemo/tag/queryTagList?offset=0&pageCount=10&tagId=0&tagType=all&userId=0

    public Observable<BaseEntity> getSofaData(int offset, int pageCount,int tagId,String tagType, int userId){
        Observable<TagEntity> tagEntityObservable = RetrofitManager.getInstance().getRetrofit().create(ApiService.class)
                .tagData(offset+"", pageCount+"",tagId+"",tagType, userId+"");
        return checkNettWork(tagEntityObservable);
    }

}
